package com.zcccccy.rocketmq.producer.config.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 生产者初始化 生产者连接信息
 * 
 * @projectName: zcccccy
 * @packageName: com.zcccccy.extend.rocketmq.producer.config.properties
 * @author: zcy
 * @createTime: 2024/1/29
 * @productName: For Mac IntelliJ IDEA
 */
@Data
@Component
@ConfigurationProperties(prefix = "rocketmq.producer")
public class ProducerProperties {

    /** Endpoints rocketMQ端点 */
    private String endpoints;

    /** 最大重试次数 */
    private int maxAttempts = 3;

    /** 主题 */
    private List<String> topicList;

}
